# a = "hello"
# print(a)
# 等号连接的变量可以传递赋值
"""
a = b = c = d = 'hello'
print(a)
print(b)
print(c)
print(d)
"""
# 拆包
"""
m,n=3,5
print(m) # 3
print(n) # 5
"""
# 拆包时，变量个数和值的个数不一致，会报错
"""
y,z = 1,2,3,4,5
print(y)
print(z) # ValueError: too many values to unpack (expected 2)
"""
# * 表示可变长度的使用
"""
o,*p,q = 1,2,3,4,5,6
print(o) # o = 1
print(p) # *p = [2,3,4,5]  返回的是一个列表
print(q) # q = 6
"""
"""
a,b,*c,d,e = 5,6,7,8,9
print(c)
print(type(c)) # <class 'list'>
"""
""""
# + 加
num1 = 3
num2 = 6
print(num1+num2) # 9

# - 减
print(num1-num2) # 3-6=-3

# * 乘
print(num1*num2) # 3*6 = 18

# / 除
print(num1/num2) # 0.5

# // 整除
print(num1//num2) # 0

# % 取余
print(num1%num2)

# **  次方
print(num1**num2) # 3**6

# () 小括号，提高运算优先级
print((2+2)*3) # 12
"""
